<?php
	include_once('phpbb2_settings.php');

	// tell pligg what pages this modules should be included in
	// pages are <script name> minus .php
	// index.php becomes 'index' and shakeit.php becomes 'shakeit'
	$include_in_pages = array('all');
	$do_not_include_in_pages = array();
	
	if( do_we_load_module() ) {		
	
		module_add_action('login_success_pre_redirect', 'phpbb2_login', '');
		
		module_add_action('logout_success', 'phpbb2_logout', '');
	
		module_add_action('register_success_pre_redirect', 'phpbb2_create_user', '');
		
		include_once(mnmmodules . 'phpbb2/phpbb2_main.php');
	}
		
?>